{include common/header}
{include common/left}
<div id="content">  
  <ul class="breadcrumb">
    <li><a href="javascript:;"><i class="icon-home"></i>{if $type==1}出租{else}出售{/if}房源列表</a> </li>
   </ul>
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
      {include userestate/searchform}
        <div class="widget-box">
          <div class="widget-title"> 
            <h5><span class="icon"> <i class="icon-align-justify"></i> </span>{if $type==1}出租{else}出售{/if}房源列表</h5>
          </div>
          <div class="widget-content nopadding">
          
          <form id="estateform" action="" method="post" class="form-horizontal">
          {if $type==1}
            <table class="table table-bordered table-striped table-hover">
					<thead>
						<tr>
						<th><input type="checkbox" id="all" /></th>
							<th>地址</th>
							<th>楼层</th>
							<th>户型</th>
							<th>面积</th>
							<th>装修</th>
							<th>备注</th>
							<th>月租</th>
							<th>网号</th>							
							<th>租否</th>
							<th>时间</th>					
							<th>操作</th>						
						</tr>
					</thead>
					<tbody>
					{loop $list $val}
						<tr>
							<td><input type="checkbox" name="id[]" value="{$val['id']}" /></td>
							<td>{$val['address']}</td>
							<td>{$val['floor']}</td>
							<td>{$val['aname']}</td>
							<td>{$val['area']}</td>
							<td>{$val['dname']}</td>
							<td>{$val['remark']}</td>
							<td>{$val['rent']}</td>
							<td>{$val['netid']}</td>
							<td>{if $val['rented']}是{else}否{/if}</td>
							<td>{date('Y-m-d',$val['dateline'])}</td>					
							<td>								
							<!--<a href="{url('userestate/refresh',array('id'=>$val['id']))}">重新发布</a> -->							
							{if $val['status']==0}<a href="{url('userestate/edit',array('id'=>$val['id'],'type'=>$val['type']))}">修改</a>{/if}
							<!--<a href="{url('userestate/del',array('id'=>$val['id']))}">删除</a> 
							<a href="{url('userestate/status',array('id'=>$val['id']))}">确认审核</a>-->
							
							</td>
						</tr>
				    {/loop}
					</tbody>
					<tfoot>
						<tr>
							<td colspan="12">							
							<input class="btn btn-primary" type="button" id="user_rented" value="已出租" >
							<input class="btn btn-primary" type="button" id="user_norented" value="未出租" >
							<input class="btn btn-danger" type="button" id="user_delete" value="删除" > 
							<!--<input class="btn btn-success" type="button" id="status" value="审核确认" > 
							<input class="btn btn-primary" type="button" id="user_refresh" value="重新发布" > -->
							{$pagestring}</td>							
						</tr>
					</tfoot>
				</table>	
				{else}
				<table class="table table-bordered table-striped table-hover">
					<thead>
						<tr>
						<th><input type="checkbox" id="all" /></th>
							<th>地址</th>
							<th>楼层</th>
							<th>户型</th>
							<th>面积</th>
							<th>权属</th>
							<th>结构</th>
							<th>装修</th>
							<th>备注</th>
							<th>售价</th>
							<th>网号</th>							
							<th>售否</th>
							<th>时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
					{loop $list $val}
						<tr>
						<td><input type="checkbox" name="id[]" value="{$val['id']}" /></td>
							<td>{$val['address']}</td>
							<td>{$val['floor']}</td>
							<td>{$val['aname']}</td>
							<td>{$val['area']}</td>
							<td>{$val['cname']}</td>
							<td>{$val['sname']}</td>
							<td>{$val['dname']}</td>
							<td>{$val['remark']}</td>
							<td>{$val['rent']}</td>		
							<td>{$val['netid']}</td>					
							<td>{if $val['rented']}是{else}否{/if}</td>
							<td>{date('Y-m-d',$val['dateline'])}</td>							
							<td>
							<!--<a href="{url('estate/refresh',array('id'=>$val['id']))}">重新发布</a> -->							
							{if $val['status']==0}<a href="{url('userestate/edit',array('id'=>$val['id'],'type'=>$val['type']))}">修改</a>{/if}
							<!--<a href="{url('estate/del',array('id'=>$val['id']))}">删除</a> 
							<a href="{url('estate/status',array('id'=>$val['id']))}">确认审核</a>-->									
							</td>
						</tr>
				    {/loop}
					</tbody>
					<tfoot>
						<tr>
							<td colspan="13">
							<input class="btn btn-primary" type="button" id="user_rented" value="已出售" >
							<input class="btn btn-primary" type="button" id="user_norented" value="未出售" >
							<input class="btn btn-danger" type="button" id="user_delete" value="删除" > 
							<!--<input class="btn btn-success" type="button" id="status" value="审核确认" > -->
							<input class="btn btn-primary" type="button" id="user_refresh" value="重新发布" > 
							{$pagestring}</td>							
						</tr>
					</tfoot>
				</table>	
				{/if}
				</form>
          </div>
        </div>
        
      </div>
    </div>
  </div>
</div>
{include common/footer}